<?php
require_once BACKGROUND_PC_COMMON_ACTION_DIR . '/default.php';

class background_pc_index_login_action extends background_pc_default_common_action
{
    protected $_layout = 'common/layout_login.php';
    
    protected $_if_require_login = false;
    
    protected function _current_page_run()
    {
        //var_dump(__METHOD__); exit();
        
        $background_index_login_action_service = wwy_resource_container::get_background_index_login_action_service();
        $background_index_login_action_service->process();


        self::$_view_data['login_captcha_url'] = $this->get_url(array('route' => 'pc_background_index_login_captcha'), true);

        self::$_view_data['do_login_url'] = $this->get_url(array('route' => 'pc_background_index_do_login'), true);
        self::$_view_data['good_index_url'] = $this->get_url(array('route' => 'pc_background_good_index'), true);
        
        self::$_view_data['title'] = '登录页面';
        self::$_layout_data['view_content'] = $this->_render_view('index/login.php');

        //设置【self::$_view_data['page_title']】，用于生成【self::$_layout_data['page_title']】
        self::$_view_data['page_title'] = self::$_view_data['title'];
    }
}